import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class JUTAssignable
{
	private interface Base {}
	private interface Sub extends Base {}

	private class BaseImpl implements Base {}
	@SuppressWarnings("unused")
  private class SubImpl extends BaseImpl implements Sub{}

	@Test
	public void isSuperTypeOf()
	{
		assertTrue(Base.class.isAssignableFrom(Sub.class));
	}

	@Test
	public void isNotSuperTypeOf()
	{
		assertFalse(Sub.class.isAssignableFrom(Base.class));
	}
}